using SqlSugar;
using Digitalmes.Domain.Repositories;

namespace Digitalmes.Infrastructure.Data;

/// <summary>
/// 工作单元。
/// </summary>
internal sealed class UnitOfWork(SugarUnitOfWork unitOfWork) : IUnitOfWork
{
    public void Commit()
    {
        unitOfWork.Commit();
    }

    public void Dispose()
    {
        unitOfWork.Dispose();
    }
}
